import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//导入三级联动展示的组件
// import TyNav from '@/views/Home/TypeNav/index'
import TyNav from '@/components/TypeNav/index'
//引入swiper样式
import 'swiper/css/swiper.css'
import Paginaion from '@/components/Pagination/index'

//引入elemen-ui
import { Button, MessageBox, Pagination } from 'element-ui';

//引入图片懒加载的插件
// import VueLazyload from 'vue-lazyload'

//引入vee-validata插件(表单验证)
import '@/ulits/vee-validate'

//全局注册element-ui
Vue.component(Button.name, Button);
//element-ui注册组件的时候，还可以挂载原型上
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;
Vue.component('TyNav', TyNav)
Vue.component('Paginaion', Paginaion)
Vue.use(Pagination);

//全局注册图片懒加载的插件
// Vue.use(VueLazyload)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
